#ifndef MEVTKUTIL_H
#define MEVTKUTIL_H

#include <vtkAxesActor.h>
#include <vtkSmartPointer.h>
#include <vtkCaptionActor2D.h>

/// util 类
class MeVtkUtil {
public:
    // 生成默认坐标轴
    static vtkSmartPointer<vtkAxesActor> createAxes()
    {
        //轴
        vtkSmartPointer<vtkAxesActor> axes = vtkSmartPointer<vtkAxesActor>::New();
        axes->SetTotalLength(400.0, 400.0, 400.0);
        axes->SetShaftType(vtkAxesActor::LINE_SHAFT); //设置轴类型圆柱形状
        axes->SetCylinderRadius(0.01);
        axes->PickableOff();
        axes->SetConeRadius(0.01);
        axes->GetXAxisCaptionActor2D()->SetWidth(0.01);
        axes->GetYAxisCaptionActor2D()->SetWidth(0.01);
        axes->GetZAxisCaptionActor2D()->SetWidth(0.01);

        return axes;
    }

};

#endif // MEVTKUTIL_H
